import java.io.*;
import java.lang.*;

public class Main{
	public static void main (String[] args){
	Punto p1;
	Punto p2;
	Distancia dist;
	int x = 0;
	int y = 0;

	System.out.println ("First set of coordinates");
	x = getData("x: ");
	y = getData("y: ");
	p1 = new Punto(x, y);

	System.out.println ("Second set of coordinates");
	x = getData("x: ");
	y = getData("y: ");
	p2 = new Punto(x, y);

	p1.calculateDistance(p2);
	showD(p1, p2);
	}

	public static void showD (Punto p1, Punto p2){
		System.out.println ("The distance of ("+p1.getX()+","+p1.getY()+") and ("+p2.getX()+","+p2.getY()+") is "+p1.getDistance());
	}

	public static int getData(String s){
		int n = 0;
		try {
			BufferedReader stdin = new BufferedReader (new InputStreamReader(System.in));
			System.out.print (s);
			String t = stdin.readLine(); 
			n = Integer.parseInt(t);
		}
		catch (IOException e){}
		return n;
	}


}
